package com.example.demo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.demo.entity.EoExecutePeople;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface ExecutePeopleMapper extends BaseMapper<EoExecutePeople> {

    //根据eo id查找保障人员
    @Select("select * from eo_e_people where eo_id = #{id}")
    List<EoExecutePeople> selectAllById(Long id);

    @Select("select * from eo_e_people where people_id = #{id}")
    List<EoExecutePeople> selectAllByPeopleId(Long id);
}
